package shiyl.use.springboot.config.fabric;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import lombok.Data;
import lombok.ToString;

/**
 * Peer节点配置信息对象
 * @author shiyl
 */
@Data
@ToString
public class PeerCfg {
    private String name ;
    private String description ;
    private String url ;
    private int weight ;
    private boolean sticky = false ;

    @Override
    public String toString(){
        Gson g = new GsonBuilder().create() ;
        return g.toJson(this) ;
    }
}
